package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 张义
 * @describe:
 * @date 2021/06/17
 */

public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public UserServiceImpl(){}

    public UserServiceImpl(UserDao userDao){
        this.userDao = userDao;
    }

    public void save() {
        userDao.save();
    }

    public void setUserDao(UserDao userDao){
        this.userDao = userDao;
    }

}
